package com.erb.entity;

import java.sql.Timestamp;

/**
 * Created by MoYao on 2020/6/17.
 * 红包
 */
public class Redenvelopes {
	private int id;  //红包id
	private String rname;  //红包名称（无门槛50元红包、新手红包等待）
	private String describe;  //红包描述（直接使用可提现、可做投资使用）
	private String exchangeCode;  //兑换码（一串英文和数字的组合）
	private Double amount;  //红包金额（正数）
	private Integer number;  //数量
	private Integer rtype;  //类型（1、新手红包。2、无门槛红包。有门槛红包(3、满减。4、满减+指定项目类型。5、指定项目类型)等等）
	private Double threshold;  //满减（满多少减多少，无满减为0）
	private Integer ptype;  //指定项目类型（无指定为0）
	private Timestamp startTime;  //开始时间
	private Timestamp endTime; //结束时间
	private Integer state;  //状态（1、有效中。2、过期）

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public String getExchangeCode() {
		return exchangeCode;
	}

	public void setExchangeCode(String exchangeCode) {
		this.exchangeCode = exchangeCode;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getRtype() {
		return rtype;
	}

	public void setRtype(Integer rtype) {
		this.rtype = rtype;
	}

	public Double getThreshold() {
		return threshold;
	}

	public void setThreshold(Double threshold) {
		this.threshold = threshold;
	}

	public Integer getPtype() {
		return ptype;
	}

	public void setPtype(Integer ptype) {
		this.ptype = ptype;
	}

	public Timestamp getStartTime() {
		return startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "Redenvelopes{" +
				"id=" + id +
				", rname='" + rname + '\'' +
				", describe='" + describe + '\'' +
				", exchangeCode='" + exchangeCode + '\'' +
				", amount=" + amount +
				", number=" + number +
				", rtype=" + rtype +
				", threshold=" + threshold +
				", ptype=" + ptype +
				", startTime=" + startTime +
				", endTime=" + endTime +
				", state=" + state +
				'}';
	}
}
